package com.knife.bbs.domain;

import com.knife.dbo.IObject;
/**
 * BBS栏目信息-通过实现IObject接口支持EasyDBO零配置文件方式映射
 */
public class Skin implements IObject {
	
	//	EasyJWeb Tools自动代码生成
	  //属性部份 
	
    private String id;
    private String name;
    private String skin;
    private String dir;
    private String description;
    private Integer status;

//  EasyDBO自动映射部份
	public  String getTableName()
    {
    	return "Skin";
    }
    public  String getKeyField()
    {
    	return "id";	
    }
    public String getKeyGenerator()//主键产生器
    {
    	return "com.knife.dbo.RandomIdGenerator";
    }
//  getter及setter方法
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getDir() {
		return dir;
	}
	public void setDir(String dirPath) {
		this.dir = dirPath;
	}

	public String getDescription() {
		return description;
	}
	public void setDescription(String intro) {
		this.description = intro;
	}

	public String getSkin() {
		return skin;
	}
	public void setSkin(String parentSn) {
		this.skin = parentSn;
	}

	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getName() {
		return name;
	}
	public void setName(String title) {
		this.name = title;
	}
	
	public void setSkin(com.knife.bbs.object.Skin dir){
		if (dir.getId() != null) {
			if (dir.getId().length() > 0) {
				this.id = dir.getId();
			}
		}
		this.name=dir.getName();
		this.skin=dir.getSkin();
		this.dir=dir.getDir();
		this.description=dir.getDescription();
		this.status=dir.getStatus();
	}
}